/**
 * This class will implement the reports entity of our program.
 * 
 * @author Gil Levinson
 * @author Boris Fradlis
 * @author Yogev Levi
 * @author Hila Porat
 */

package vcpClasses;

import java.io.Serializable;

// Start of Report **********************************************

public class Report implements Serializable{
	
	// Class variables ******************************************
	
	private int rid;
	private String type;
	private String content;
	private String date;
	private String time;
	
	//Getters and Setters **************************************
	
	/**
	 * @return the rid
	 */
	public int getRid() {
		return rid;
	}
	/**
	 * @param rid the rid to set
	 */
	public void setRid(int rid) {
		this.rid = rid;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * @return the date
	 */
	public String getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}
	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}
	
	public String toQuarterReportMessage(String date, int occ, int adv, int norm, int full, int total, int closed, int susp){
		return new String("Quarter report from date "+date+
				"\n\nNumber of orders :"+
				"\nOccasional : "+occ+
				"\nIn Advance : "+adv+
				"\nNormal Subscription :"+norm+
				"\nFull Subscription : "+full+
				"\n\nNumber of complaints :"+
				"\nTotal : "+total+
				"\nClosed : "+closed+
				"\n\nNumber of suspended parking spaces : "+susp);
	}
	
	
	}
